package org.jmat;

import java.io.IOException;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import org.jmat.domain.entities.not.generated.Car;
import org.jmat.domain.entities.not.generated.Cars;
import org.jmat.domain.entities.not.generated.DateAdapter;


public class GenerateSchema {
	
	public void genSchema(){
		JAXBContext context;
		try {
			context = JAXBContext.newInstance(Cars.class,Car.class,DateAdapter.class);
			context.generateSchema(new MySchemaOutputResolver());
		}
		catch (JAXBException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	
	
}
